home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1997 / MacHack 1997.toast / Hacks / Hacks ’97 / Warrior’s Progress / source code / Source / Libraries / Buffers / BufferOfSize.h < prev    next >
Encoding:
Text File  |  1997-06-28  |  291 b   |  23 lines  |  [TEXT/CWIE]

  1. // BufferOfSize.h
  2.  
  3. #ifndef BufferOfSize_h
  4. #define BufferOfSize_h
  5.  
  6. #ifndef Buffer_h
  7. #include "Buffer.h"
  8. #endif
  9.  
  10. template < uint32 size >
  11. class BufferOfSize: public Buffer
  12.   {
  13.     private:
  14.         uint8 space[ size ];
  15.     
  16.     public:
  17.         BufferOfSize()
  18.           : Buffer( Data( space, size ) )
  19.           {}
  20.   };
  21.  
  22. #endif
  23.